package com.lagou.edu.dao.repository;

import com.lagou.edu.dao.entity.Token;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author bobcheng
 * @date 2020/7/13
 */
public interface TokenRepository extends JpaRepository<Token, Integer> {

    Token findTopByToken(String token);

    Token findTopByEmail(String email);
}
